import React from 'react';

const CustomIcon = ({ type, className = '', size = 'xxs', ...restProps }) => (
  <svg
    className={`am-icon am-icon-${size} ${className}`}
    {...restProps}
  >
    <use xlinkHref={`#${type.default.id}`} />

  </svg>
);

CustomIcon.propTypes = {
};

export default CustomIcon;
